package com.my.chapter3;

public class practice2 {
    public static void main(String[] args) {
        Tank t1 = new Tank();
        Tank t2 = new Tank();
        t1.level = 3.6F;
        t2.level = 6.0F;
        System.out.println("1：t1.level="+t1.level+";t2.level="+t2.level);
        t1=t2;
        System.out.println("2：t1.level="+t1.level+";t2.level="+t2.level);
        t1.level = 3.0F;
        System.out.println("3：t1.level="+t1.level+";t2.level="+t2.level);
    }
}

class Tank{
    float level;
}

